Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix crash when using conda-pack on environments created with pixi #305

Merged
merged 3 commits into from
Jan 21, 2024

Conversation

melund
Copy link
Contributor

@melund melund commented Jan 11, 2024

Description

I tried to use conda-pack with environments created using pixi. This caused a few issues due to slight variations in the content of the conda-mata files. (E.g. info['link'] was "null" in my files, and I don't have a conda-meta/history file).

Have added few checks to the code which makes conda-pack work with environments created with pixi.

I don't know if there is a standard for the conda-meta stuff. If so, the real fix should be in pixi of course. But I hope you will consider my PR anyway.

Checklist - did you ...

  • Add a file to the news directory (using the template) for the next release's release notes?
  • Add / update necessary tests?
  • Add / update outdated documentation?

@melund melund requested review from xhochy and a team as code owners January 11, 2024 09:08
@conda-bot conda-bot added the cla-signed [bot] added once the contributor has signed the CLA label Jan 11, 2024
@xhochy
Copy link
Collaborator

xhochy commented Jan 11, 2024

cc @pavelzw @0xbe7a

@xhochy
Copy link
Collaborator

xhochy commented Jan 11, 2024

I wonder whether the non-existence of conda-meta/history is a actually "a bug".

@0xbe7a
Copy link

0xbe7a commented Jan 11, 2024

I don't think there is a specification of the conda-meta structure, only the conda implementation. I would argue that generating the conda-meta/history file makes little sense for pixi since environments are not mutated, so imho the best course of action is to make the file optional here.

@xhochy
Copy link
Collaborator

xhochy commented Jan 14, 2024

pre-commit.ci autofix

@xhochy xhochy merged commit ed92e48 into conda:main Jan 21, 2024
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla-signed [bot] added once the contributor has signed the CLA
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

4 participants